﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
using Framework;

namespace QuanLyThuVien_2
{
    class ScreenPhieuMuon: myScreen 
    {
        public List<string> listNameMenuDocGia;
        public ScreenPhieuMuon()
        { }
        public ScreenPhieuMuon(Size SizeScreen, Point LocationScreen)
            : base(SizeScreen, LocationScreen)
        {
            listNameMenuDocGia = new List<string>();
        }
        public override void InitializeComponent()
        {
            base.InitializeComponent();
            StreamReader srd = new StreamReader("ListScreenDocGia.txt");
            string line = "";
            while ((line = srd.ReadLine()) != null)
            {
                listNameMenuDocGia.Add(line);
            }
            GroupBox gtx = Util.CreateGroupBox("gtxChucNang", "CHỨC NĂNG", new Font("Segoe UI", 20, FontStyle.Regular, GraphicsUnit.Point), new Size(700, 200), new Point(50, 50));
            Button btn = Util.CreateButton("btnThemPhieuMuon", "", Image.FromFile(@"MenuPhieuMuon/ThemPhieuMuon.png"), new Size(Image.FromFile(@"MenuPhieuMuon/ThemPhieuMuon.png").Width, Image.FromFile(@"MenuPhieuMuon/ThemPhieuMuon.png").Height), new Point(100, 320));
            this.Pnl.Controls.Add(btn);


            btn = Util.CreateButton("btnXoaPhieuMuon", "", Image.FromFile(@"MenuPhieuMuon/XoaPhieuMuon.png"), new Size(Image.FromFile(@"MenuPhieuMuon/ThemPhieuMuon.png").Width, Image.FromFile(@"MenuPhieuMuon/ThemPhieuMuon.png").Height), new Point(240, 320));
            this.Pnl.Controls.Add(btn);


            btn = Util.CreateButton("btnSuaPhieuMuon", "", Image.FromFile(@"MenuPhieuMuon/SuaPhieuMuon.png"), new Size(Image.FromFile(@"MenuPhieuMuon/ThemPhieuMuon.png").Width, Image.FromFile(@"MenuPhieuMuon/ThemPhieuMuon.png").Height), new Point(380, 320));
            this.Pnl.Controls.Add(btn);


            btn = Util.CreateButton("btnTraCuuPhieuMuon", "", Image.FromFile(@"MenuPhieuMuon/TraCuuPhieuMuon.png"), new Size(Image.FromFile(@"MenuPhieuMuon/ThemPhieuMuon.png").Width, Image.FromFile(@"MenuPhieuMuon/ThemPhieuMuon.png").Height), new Point(520, 320));
            this.Pnl.Controls.Add(btn);
            

            //event            
        }
    }
}
